<template>
    <div v-show="isShow">
        <div class="weui-mask"></div>
         <div class="weui-dialog dialog-panel">
            <div class="weui-dialog__hd dialog-hd">
                <strong class="weui-dialog__title dialog-title">微信授权</strong>
            </div>
            <div class="weui-dialog__bd dialog-bd">
                <div class="dialog-bd-tip">此应用需要您的授权，我们不会窃取你的个人信息。</div>
            </div>
            <div class="weui-dialog__bd dialog-bd"></div>
            <div class="weui-dialog__ft dialog-ft">
              <form @submit="saveFormId" report-submit style="width:100%">
                <button open-type="getUserInfo" form-type="submit" lang="zh_CN" @getuserinfo="getUserInfoTrigger" class="weui-dialog__btn weui-dialog__btn_primary dialog-btn-primary" style="background:#fff">确定</button>
              </form>
            </div>
        </div>
    </div>
</template>
<script>
    export default {
        props:{
            isShow : {
                type:Boolean,
                default : false
            }
        },
        mounted(){
            this.isShow = false;
        },
        methods : {
            getUserInfoTrigger : (res) =>{
                console.log(res);
            },
            saveFormId : (e) =>{

            }
        }
    }
</script>